//
//  FristModel.m
//  Model
//
//  Created by ChuXiang on 15/11/10.
//  Copyright © 2015年 ChuXiang. All rights reserved.
//

#import "FristModel.h"

@implementation FristModel
- (instancetype)initWithData:(NSDictionary *)data {
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:data];
    }
    return self;
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqual:@"data"]) {
        NSDictionary *dic = value;
        _secondmodel = [[SecondModel alloc] initWithData:dic];
//        NSLog(@"%@", _secondmodel.focusNum);
        
    }
}
- (id)valueForUndefinedKey:(NSString *)key {
    return nil;
}
@end
